import request from '@/utils/request'




//根据ID删除内容
export function deleteContentById(id) {
  return request({
    method: 'delete',
    url: '/mutual-content/content',
    params: {
      id: id
    }
  })
}



export function saveRevision(id) {
  return request({
    method: 'POST',
    url: '/mutual-content/contentHistory',
    params: {
      contentId: id
    }
  })
}


export function getStatusHistory(id) {

}

export function addContent(data) {
  return request({
    method: 'POST',
    url: '/mutual-content/content',
    data
  })
}


export function updateContent(data) {
  return request({
    method: 'PUT',
    url: '/mutual-content/content',
    data
  })
}



export function addContentDetail(data) {
  return request({
    method: 'POST',
    url: '/mutual-content/contentDetail',
    data
  })
}


export function updateContentDetail(data) {
  return request({
    method: 'PUT',
    url: '/mutual-content/contentDetail',
    data
  })
}
